package Controller;

import org.junit.After;
import org.junit.Before;
import org.junit.Test;
import junit.framework.TestCase;

import java.util.ArrayList;
import VO.BookListVO;
import VO.BookVO;

public class BrowseIntegrationTester extends TestCase{
    private BrowseController controller;
	
	@Before
	protected void setUp() throws Exception {
		super.setUp();
		controller=new BrowseController();
	}

	@After
	protected void tearDown() throws Exception {
		super.tearDown();
	}

	@Test
	public void testGetRecommendBooks() {
		BookListVO booklist=controller.getRecommendBooks();
		ArrayList<BookVO> books=booklist.getBooklist();
		assertEquals(books.size(),20);
	}

}
